package com.itany.nmms.service;

import com.itany.nmms.exception.FileUploadErrorException;
import com.itany.nmms.exception.ProductExistException;
import com.itany.nmms.exception.RequestParamErrorException;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpSession;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/8/3 13:41
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface ProductService {

    /**
     * 添加商品信息
     * @param name
     * @param price
     * @param file
     * @param typeId
     * @param session
     */
    public void addProduct(String name, String price, CommonsMultipartFile file, String typeId, HttpSession session) throws RequestParamErrorException, ProductExistException, FileUploadErrorException;

}
